package com.codi.bus.core.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.codi.base.domain.BaseDomain;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * 机构基本资料vo
 *
 * @author shi.pengyan
 * @version 1.0 2017-09-01 9:22
 * @since 1.0
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class OrganProfileStep1Vo extends BaseDomain {

    private Long profileId;

    private Boolean threeInOne = false;

    @NotBlank
    private String companyName;

    @NotBlank
    private String businessLicence;

    @NotBlank
    private Boolean businessLicenceLongEffective = false;

    @JSONField(format = "yyyy-MM-dd")
    private Date businessLicenceExpireDate;

    @Length(max = 15)
    private String taxRegister;

    @Length(max = 10)
    private String organCode;
    @NotBlank
    private String address;
    @NotBlank
    @Length(max = 6)
    private String postcode;
    @NotBlank
    private String trade;
    @NotBlank
    private String corProperty;
    @NotBlank
    private String regCapital;
    @NotBlank
    private String businessRange;
    @NotBlank
    @Length(max = 20)
    private String instreprName;

    @NotBlank
    @Length(max = 18)
    private String instreprIdNo;
    @NotBlank
    private Boolean instreprIdNoLongEffective = false;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date instreprIdNoExpireDate;

    @NotBlank
    private String beneficiary;
    @NotBlank
    private String owner;

    //没有经办人信息
}

